

keys=[1,2,3,4,5]

lst =[ dict(key=f"cat_{key}") for key in keys if key != 2]

print(lst)





